// import { decodeURLParams } from '@/utils/decodeUrl'
// 数据是怎样的

const data = {
    video: {
        url: 'http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4',
        currentTime: 0,
        watched: false,
        type: "video/mp4"
    },
    materials: [
        {
            fileName: 'RxJS在React中的应用',
            url: 'https://www.lilnong.top/static/pdf/B-4-RxJS%E5%9C%A8React%E4%B8%AD%E7%9A%84%E5%BA%94%E7%94%A8-%E9%BE%99%E9%80%B8%E6%A5%A0_.pdf',
            watched: false,
        },
        {
            fileName: '学习',
            url: 'https://www.gjtool.cn/pdfh5/git.pdf',
            watched: false,
        },
    ],
    topics: {
        //单选
        singleChoice: [
            {
                order: 1,
                tid: '001',
                title: '1+1=?',
                opts: ['1', '2', '3', '4'],
            },
            {
                order: 2,
                tid: '002',
                title: '落霞与孤鹜齐飞，秋水共长天一色出自？',
                opts: ['王维', '杜甫', '黄渤', '李白'],
            }
        ],
        multipleChoice: [],
        trueOrFalse: [],
    }

}

// 请求方式
export default {
    'get|/study': option => {
        // console.log('请求study')
        return {
            code: 200,
            message: 'success',
            data
        };
    }
}